/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

#define _DEF_CCY_CODE
#define _ZZDEBUG
#define _PROJ_DC

#region Using directives

using System;
using System.Text;
using System.IO;
using System.Xml;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Reflection;
using System.Web;
using System.Web.UI;

using Muki.Framework;
using Muki.Framework.UI;
using Muki.Framework.Business;
using Muki.Framework.Util;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

using Dot.Tmpl;
using Dot.Tmpl.Parser;

#endregion

namespace Muki.UserPanel
{

	public class UID02180AV
	{
		public UID02180AV()
		{
		}

		public void setValue()
		{

				_lnk_RW_NO=ZZGeneral.XRequest("lnk_RW_NO");
				if (ZZGeneral.XRequest("lnk_UID_CODE_DAT")!="")
				{
					_Wxf = new Wxf();
					_Wxf.Parser(System.Web.HttpUtility.UrlDecode(ZZGeneral.XRequest("lnk_UID_CODE_DAT")));
					_Wxf.Open();

					ZZTrace.WriteToFile(this.APP_PATH+"\\temp\\UID02180A2.js",_Wxf.ToString());
					_lnk_MODE="B";
				}

					_UID02180AEntity.REQ_CODE = _Convert.ToString(objZNREQTBM_REQ_CODE.Text);
					if (_STATUS_DATA["IsPostBack"]=="")
					{
						if (ZZGeneral.XRequest("lnk_ZNREQTBM_REQ_CODE")!="")
						{
							_UID02180AEntity.REQ_CODE = ZZGeneral.XRequest("lnk_ZNREQTBM_REQ_CODE");
						}
					}

					_UID02180AEntity.UID_CODE = _Convert.ToString(objZNREQTBM_UID_CODE.Text);

					_UID02180AEntity.REQ_NAME01 = _Convert.ToString(objZNREQTBM_REQ_NAME01.Text);

					_UID02180AEntity.REQ_NAME02 = _Convert.ToString(objZNREQTBM_REQ_NAME02.Text);

					_UID02180AEntity.REQ_URL = _Convert.ToString(objZNREQTBM_REQ_URL.Text);

					_UID02180AEntity.REQ_OPT = _Convert.ToString(objZNREQTBM_REQ_OPT.Text);

					_UID02180AEntity.START_DATE = _Convert.ToDateTime(objZNREQTBM_START_DATE.Text);

					_UID02180AEntity.START_TIME = _Convert.ToString(objZNREQTBM_START_TIME.Text);

					_UID02180AEntity.TASK_REQ_DATE = _Convert.ToDateTime(objZNREQTBM_TASK_REQ_DATE.Text);

					_UID02180AEntity.TASK_REQ_TIME = _Convert.ToString(objZNREQTBM_TASK_REQ_TIME.Text);

					_UID02180AEntity.START_CLASS = _Convert.ToString(objZNREQTBM_START_CLASS.Text);

					_UID02180AEntity.START_OPT13 = _Convert.ToInt(objZNREQTBM_START_OPT13.Text);

					_UID02180AEntity.START_OPT01 = _Convert.ToBoolean(objZNREQTBM_START_OPT01.Text);

					_UID02180AEntity.START_OPT02 = _Convert.ToBoolean(objZNREQTBM_START_OPT02.Text);

					_UID02180AEntity.START_OPT03 = _Convert.ToBoolean(objZNREQTBM_START_OPT03.Text);

					_UID02180AEntity.START_OPT04 = _Convert.ToBoolean(objZNREQTBM_START_OPT04.Text);

					_UID02180AEntity.START_OPT05 = _Convert.ToBoolean(objZNREQTBM_START_OPT05.Text);

					_UID02180AEntity.START_OPT06 = _Convert.ToBoolean(objZNREQTBM_START_OPT06.Text);

					_UID02180AEntity.START_OPT07 = _Convert.ToBoolean(objZNREQTBM_START_OPT07.Text);

					_UID02180AEntity.START_OPT08 = _Convert.ToBoolean(objZNREQTBM_START_OPT08.Text);

					_UID02180AEntity.START_OPT09 = _Convert.ToBoolean(objZNREQTBM_START_OPT09.Text);

					_UID02180AEntity.START_OPT10 = _Convert.ToBoolean(objZNREQTBM_START_OPT10.Text);

					_UID02180AEntity.START_OPT11 = _Convert.ToBoolean(objZNREQTBM_START_OPT11.Text);

					_UID02180AEntity.START_OPT12 = _Convert.ToBoolean(objZNREQTBM_START_OPT12.Text);

					_UID02180AEntity.START_OPT15 = _Convert.ToString(objZNREQTBM_START_OPT15.Text);

					_UID02180AEntity.REQ_RMKS = _Convert.ToString(objZNREQTBM_REQ_RMKS.Text);

					_UID02180AEntity.START_BIT = _Convert.ToBoolean(objZNREQTBM_START_BIT.Text);

					_UID02180AEntity.REQ_STATUS = _Convert.ToString(objZNREQTBM_REQ_STATUS.Text);

					_UID02180AEntity.REQ_USER = _Convert.ToString(objZNREQTBM_REQ_USER.Text);

		}

		public void getValue()
		{
					_STATUS_DATA["UID02180A","PK_REQ_CODE"]=_Convert.ToString(_UID02180AEntity.REQ_CODE);

					objZNREQTBM_REQ_CODE.Text=_Convert.ToString(_UID02180AEntity.REQ_CODE);
					objZNREQTBM_UID_CODE.Text=_Convert.ToString(_UID02180AEntity.UID_CODE);
					objZNREQTBM_REQ_NAME01.Text=_Convert.ToString(_UID02180AEntity.REQ_NAME01);
					objZNREQTBM_REQ_NAME02.Text=_Convert.ToString(_UID02180AEntity.REQ_NAME02);
					objZNREQTBM_REQ_URL.Text=_Convert.ToString(_UID02180AEntity.REQ_URL);
					objZNREQTBM_REQ_OPT.Text=_Convert.ToString(_UID02180AEntity.REQ_OPT);
					objZNREQTBM_START_DATE.Text=_Convert.ToString(_UID02180AEntity.START_DATE);
					objZNREQTBM_START_TIME.Text=_Convert.ToString(_UID02180AEntity.START_TIME);
					objZNREQTBM_TASK_REQ_DATE.Text=_Convert.ToString(_UID02180AEntity.TASK_REQ_DATE);
					objZNREQTBM_TASK_REQ_TIME.Text=_Convert.ToString(_UID02180AEntity.TASK_REQ_TIME);
					objZNREQTBM_START_CLASS.Text=_Convert.ToString(_UID02180AEntity.START_CLASS);
					objZNREQTBM_START_OPT13.Text=_Convert.ToString(_UID02180AEntity.START_OPT13);
					objZNREQTBM_START_OPT01.Text=_Convert.ToString(_UID02180AEntity.START_OPT01);
					objZNREQTBM_START_OPT02.Text=_Convert.ToString(_UID02180AEntity.START_OPT02);
					objZNREQTBM_START_OPT03.Text=_Convert.ToString(_UID02180AEntity.START_OPT03);
					objZNREQTBM_START_OPT04.Text=_Convert.ToString(_UID02180AEntity.START_OPT04);
					objZNREQTBM_START_OPT05.Text=_Convert.ToString(_UID02180AEntity.START_OPT05);
					objZNREQTBM_START_OPT06.Text=_Convert.ToString(_UID02180AEntity.START_OPT06);
					objZNREQTBM_START_OPT07.Text=_Convert.ToString(_UID02180AEntity.START_OPT07);
					objZNREQTBM_START_OPT08.Text=_Convert.ToString(_UID02180AEntity.START_OPT08);
					objZNREQTBM_START_OPT09.Text=_Convert.ToString(_UID02180AEntity.START_OPT09);
					objZNREQTBM_START_OPT10.Text=_Convert.ToString(_UID02180AEntity.START_OPT10);
					objZNREQTBM_START_OPT11.Text=_Convert.ToString(_UID02180AEntity.START_OPT11);
					objZNREQTBM_START_OPT12.Text=_Convert.ToString(_UID02180AEntity.START_OPT12);
					objZNREQTBM_START_OPT15.Text=_Convert.ToString(_UID02180AEntity.START_OPT15);
					objZNREQTBM_REQ_RMKS.Text=_Convert.ToString(_UID02180AEntity.REQ_RMKS);
					objZNREQTBM_START_BIT.Text=_Convert.ToString(_UID02180AEntity.START_BIT);
					objZNREQTBM_REQ_STATUS.Text=_Convert.ToString(_UID02180AEntity.REQ_STATUS);
					objZNREQTBM_REQ_USER.Text=_Convert.ToString(_UID02180AEntity.REQ_USER);

				objZNREQTBM_USECURITY_CODE1.Text=_UID02180AEntity.USECURITY_CODE1;
							objZNREQTBM_USECURITY_CODE2.Text=_UID02180AEntity.USECURITY_CODE2;
							objZNREQTBM_USECURITY_CODE3.Text=_UID02180AEntity.USECURITY_CODE3;
							objZNREQTBM_USECURITY_CODE4.Text=_UID02180AEntity.USECURITY_CODE4;
							objZNREQTBM_USECURITY_CODE5.Text=_UID02180AEntity.USECURITY_CODE5;
							objZNREQTBM_USECURITY_CODE6.Text=_UID02180AEntity.USECURITY_CODE6;
			
			objZNREQTBM_USECURITY_RIGHT.Text = _UID02180AEntity.USECURITY_RIGHT.ToString();
			objZNREQTBM_UZADD_DATE.Text      = _UID02180AEntity.UZADD_DATE;
			objZNREQTBM_UZADD_USER.Text      = _UID02180AEntity.UZADD_USER;
			objZNREQTBM_UZCHG_DATE.Text      = _UID02180AEntity.UZCHG_DATE;
			objZNREQTBM_UZCHG_USER.Text      = _UID02180AEntity.UZCHG_USER;
		}

		public void OnInit(HttpContext  objHttpContext)		
		{

			this.UID_CODE = "UID02180A";
			this.DbName = ZZGeneral.DbName();

				_STATUS_DATA.UID_CODE="UID02180A";
			_STATUS_DATA.OnInit(objHttpContext);

			_STATUS_DATA["lnk_UID_CODE"] = "UID02180A";
			_STATUS_DATA["UID02180A","USQL_CODE"] = "QID02180A";

			this.ZZEventStatus      = _STATUS_DATA["ZZEventStatus"];
			this.ZZEventMode        = _STATUS_DATA["ZZEventMode"];
			this.ZZEventArgs        = _STATUS_DATA["ZZEventArgs"];
			this.ZZEventOpts        = _STATUS_DATA["ZZEventOpts"];
			this.ZZLOGON_SSD        = _STATUS_DATA["ZZLOGON_SSD"];
			this.ZZLOGON_LANG       = _STATUS_DATA["ZZLOGON_LANG"];
			this.ZZMODEL_DATA       = _STATUS_DATA["ZZMODEL_DATA"];

			this.ZZVIEW_STATUS_CODE = _STATUS_DATA["UID02180A","ZZVIEW_STATUS_CODE"];
			this.ZZVIEW_MODE_CODE   = _STATUS_DATA["UID02180A","ZZVIEW_MODE_CODE"];

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_SSD);
			ZZTrace.Debug(ZFILE_NAME,".ZZMODEL_DATA-"+this.ZZMODEL_DATA);
			ZZTrace.Debug(ZFILE_NAME,".ZZVIEW_MODE_CODE-"+this.ZZVIEW_MODE_CODE);
			ZZTrace.Debug(ZFILE_NAME,".ZZVIEW_STATUS_CODE-"+this.ZZVIEW_STATUS_CODE);

			this.Trans = new StreamContext(this.DbName);

			XLiveManagement oXLiveManagement=XLiveManagement.getInstance();
			oXLiveManagement.DbName=this.DbName;
			this.ZZLOGON_ID=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_ID");

			if (this.ZZLOGON_LANG=="")
			{
				this.ZZLOGON_LANG=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_LANG");
			}

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_LANG);

			_STATUS_DATA["ZZLOGON_LANG"] = this.ZZLOGON_LANG;

			_Convert.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_Convert.Trans       = this.Trans;

			_Captions             = new ZZCaptions();
			_Captions.DbName      = this.DbName;
			_Captions.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_Captions.ZZLOGON_SSD = this.ZZLOGON_SSD;

			_DocsPermission.Trans = this.Trans;

			dbTab objdbTab       = new dbTab();
			objdbTab.UID_CODE    = this.UID_CODE;
			objdbTab.Trans       = this.Trans;
			objdbTab.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbTab.ZZLOGON_SSD = this.ZZLOGON_SSD;
			objdbTab.Create();

			objWebPanels=objdbTab.Panels;

			oWindow.AddPanels(objWebPanels);
			oWindow.Trans       = this.Trans;
			oWindow.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oWindow.ZZLOGON_LANG  = this.ZZLOGON_LANG;

			Muki.Framework.ZZSetting oZZSetting = new Muki.Framework.ZZSetting();
			oZZSetting.Trans=this.Trans;

#region Quick Search

			_WebLookup.UGET_CODE   = "QDD02180A";
			_WebLookup.Trans       = this.Trans;
			_WebLookup.DbName      = this.DbName;
			_WebLookup.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebLookup.ZZLOGON_SSD = this.ZZLOGON_SSD;

				oWindow.AddLookUp(_WebLookup);

			XOption objXOption     = new XOption();
			objXOption.UID_CODE    = this.UID_CODE;
			objXOption.Trans       = this.Trans;

			XDepend objXDepend     = new XDepend();
			objXDepend.UID_CODE    = this.UID_CODE;
			objXDepend.Trans       = this.Trans;
			objXDepend.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objXDepend.ZZLOGON_SSD = this.ZZLOGON_SSD;

			ZZCDF _ZZCDF      = new ZZCDF();
			_ZZCDF.UID_CODE   = this.UID_CODE;
			_ZZCDF.Trans      = this.Trans;

#endregion

			oXForm             = new XForm();
			oXForm.UID_CODE    = this.UID_CODE;
			oXForm.DbName      = this.DbName;
			oXForm.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oXForm.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oXForm.MODEL_DATA = this.ZZMODEL_DATA;

			//oXForm.Trans     = this.Trans;

#region XForm element

#region ZNREQTBM_REQ_CODE
				objZNREQTBM_REQ_CODE.Name              = "Txt_ZNREQTBM_REQ_CODE";
				objZNREQTBM_REQ_CODE.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_CODE";

				objZNREQTBM_REQ_CODE.OnBlurEvents = "";
				objZNREQTBM_REQ_CODE.Length       = 12;
				objZNREQTBM_REQ_CODE.Height       = 0;
				objZNREQTBM_REQ_CODE.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_CODE.STATUS_CODE  = "";
				objZNREQTBM_REQ_CODE.Compulsory   = false;
				objZNREQTBM_REQ_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_CODE");
				objZNREQTBM_REQ_CODE.COLSPAN      = 6;
				objZNREQTBM_REQ_CODE.ROWSPAN      = 1;
				objZNREQTBM_REQ_CODE.Index        = 1010;
				objZNREQTBM_REQ_CODE.NEW_LINE     = true;
				objZNREQTBM_REQ_CODE.NEW_CELL     = true;
				objZNREQTBM_REQ_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_CODE);
				oWindow.Components.Add(objZNREQTBM_REQ_CODE);

#endregion //ZNREQTBM_REQ_CODE

#region ZNREQTBM_UID_CODE
				objZNREQTBM_UID_CODE.Name              = "Txt_ZNREQTBM_UID_CODE";
				objZNREQTBM_UID_CODE.TABLE_COLUMN_NAME = "ZNREQTBM_UID_CODE";

				objZNREQTBM_UID_CODE.OnBlurEvents = "";
				objZNREQTBM_UID_CODE.Length       = 12;
				objZNREQTBM_UID_CODE.Height       = 0;
				objZNREQTBM_UID_CODE.COLUMN_SCALE = 0;
				objZNREQTBM_UID_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_UID_CODE.Compulsory   = false;
				objZNREQTBM_UID_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_UID_CODE");
				objZNREQTBM_UID_CODE.COLSPAN      = 6;
				objZNREQTBM_UID_CODE.ROWSPAN      = 1;
				objZNREQTBM_UID_CODE.Index        = 1020;
				objZNREQTBM_UID_CODE.NEW_LINE     = true;
				objZNREQTBM_UID_CODE.NEW_CELL     = true;
				objZNREQTBM_UID_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_UID_CODE);
				oWindow.Components.Add(objZNREQTBM_UID_CODE);

					objZNREQTBM_UID_CODE.Browser        = objZNREQTBM_UID_CODEBrw;
					objZNREQTBM_UID_CODEBrw.UGET_CODE   = "UID_CODE";
					objZNREQTBM_UID_CODEBrw.Data_Viewer = "";
					objZNREQTBM_UID_CODEBrw.ACTIVE_FIELD ="ZUPRGHDM.UID_CODE";

					objZNREQTBM_UID_CODE.OnBlurEvents="RefreshData('UID_CODE','XREF','Txt_ZNREQTBM_UID_CODE');";

					objZNREQTBM_UID_CODE.UGET_CODE="UID_CODE";

#endregion //ZNREQTBM_UID_CODE

#region ZNREQTBM_REQ_NAME01
				objZNREQTBM_REQ_NAME01.Name              = "Txt_ZNREQTBM_REQ_NAME01";
				objZNREQTBM_REQ_NAME01.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_NAME01";

				objZNREQTBM_REQ_NAME01.OnBlurEvents = "";
				objZNREQTBM_REQ_NAME01.Length       = 40;
				objZNREQTBM_REQ_NAME01.Height       = 0;
				objZNREQTBM_REQ_NAME01.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_NAME01.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_REQ_NAME01.Compulsory   = false;
				objZNREQTBM_REQ_NAME01.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_NAME01");
				objZNREQTBM_REQ_NAME01.COLSPAN      = 6;
				objZNREQTBM_REQ_NAME01.ROWSPAN      = 1;
				objZNREQTBM_REQ_NAME01.Index        = 1030;
				objZNREQTBM_REQ_NAME01.NEW_LINE     = true;
				objZNREQTBM_REQ_NAME01.NEW_CELL     = true;
				objZNREQTBM_REQ_NAME01.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_NAME01);
				oWindow.Components.Add(objZNREQTBM_REQ_NAME01);

#endregion //ZNREQTBM_REQ_NAME01

#region ZNREQTBM_REQ_NAME02
				objZNREQTBM_REQ_NAME02.Name              = "Txt_ZNREQTBM_REQ_NAME02";
				objZNREQTBM_REQ_NAME02.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_NAME02";

				objZNREQTBM_REQ_NAME02.OnBlurEvents = "";
				objZNREQTBM_REQ_NAME02.Length       = 40;
				objZNREQTBM_REQ_NAME02.Height       = 0;
				objZNREQTBM_REQ_NAME02.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_NAME02.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_REQ_NAME02.Compulsory   = false;
				objZNREQTBM_REQ_NAME02.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_NAME02");
				objZNREQTBM_REQ_NAME02.COLSPAN      = 6;
				objZNREQTBM_REQ_NAME02.ROWSPAN      = 1;
				objZNREQTBM_REQ_NAME02.Index        = 1040;
				objZNREQTBM_REQ_NAME02.NEW_LINE     = true;
				objZNREQTBM_REQ_NAME02.NEW_CELL     = true;
				objZNREQTBM_REQ_NAME02.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_NAME02);
				oWindow.Components.Add(objZNREQTBM_REQ_NAME02);

#endregion //ZNREQTBM_REQ_NAME02

#region ZNREQTBM_REQ_URL
				objZNREQTBM_REQ_URL.Name              = "Txt_ZNREQTBM_REQ_URL";
				objZNREQTBM_REQ_URL.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_URL";

				objZNREQTBM_REQ_URL.OnBlurEvents = "";
				objZNREQTBM_REQ_URL.Length       = 50;
				objZNREQTBM_REQ_URL.Height       = 0;
				objZNREQTBM_REQ_URL.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_URL.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_REQ_URL.Compulsory   = false;
				objZNREQTBM_REQ_URL.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_URL");
				objZNREQTBM_REQ_URL.COLSPAN      = 6;
				objZNREQTBM_REQ_URL.ROWSPAN      = 1;
				objZNREQTBM_REQ_URL.Index        = 1050;
				objZNREQTBM_REQ_URL.NEW_LINE     = true;
				objZNREQTBM_REQ_URL.NEW_CELL     = true;
				objZNREQTBM_REQ_URL.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_URL);
				oWindow.Components.Add(objZNREQTBM_REQ_URL);

#endregion //ZNREQTBM_REQ_URL

#region ZNREQTBM_REQ_OPT
				objZNREQTBM_REQ_OPT.Name              = "Txt_ZNREQTBM_REQ_OPT";
				objZNREQTBM_REQ_OPT.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_OPT";

				objZNREQTBM_REQ_OPT.OnBlurEvents = "";
				objZNREQTBM_REQ_OPT.Length       = 80;
				objZNREQTBM_REQ_OPT.Height       = 0;
				objZNREQTBM_REQ_OPT.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_OPT.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_REQ_OPT.Compulsory   = false;
				objZNREQTBM_REQ_OPT.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_OPT");
				objZNREQTBM_REQ_OPT.COLSPAN      = 6;
				objZNREQTBM_REQ_OPT.ROWSPAN      = 1;
				objZNREQTBM_REQ_OPT.Index        = 1060;
				objZNREQTBM_REQ_OPT.NEW_LINE     = true;
				objZNREQTBM_REQ_OPT.NEW_CELL     = true;
				objZNREQTBM_REQ_OPT.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_OPT);
				oWindow.Components.Add(objZNREQTBM_REQ_OPT);

#endregion //ZNREQTBM_REQ_OPT

#region ZNREQTBM_START_DATE
				objZNREQTBM_START_DATE.Name              = "Txt_ZNREQTBM_START_DATE";
				objZNREQTBM_START_DATE.TABLE_COLUMN_NAME = "ZNREQTBM_START_DATE";

				objZNREQTBM_START_DATE.OnBlurEvents = "";
				objZNREQTBM_START_DATE.Length       = 0;
				objZNREQTBM_START_DATE.Height       = 0;
				objZNREQTBM_START_DATE.COLUMN_SCALE = 0;
				objZNREQTBM_START_DATE.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_DATE.Compulsory   = false;
				objZNREQTBM_START_DATE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_DATE");
				objZNREQTBM_START_DATE.COLSPAN      = 1;
				objZNREQTBM_START_DATE.ROWSPAN      = 1;
				objZNREQTBM_START_DATE.Index        = 1070;
				objZNREQTBM_START_DATE.NEW_LINE     = true;
				objZNREQTBM_START_DATE.NEW_CELL     = true;
				objZNREQTBM_START_DATE.LINE_REVEAL  = false;

					objZNREQTBM_START_DATE.Title=_Captions.Caption("lbl_Date_Column_Title");

				oXForm.AddObject(objZNREQTBM_START_DATE);
				oWindow.Components.Add(objZNREQTBM_START_DATE);

#endregion //ZNREQTBM_START_DATE

#region ZNREQTBM_START_TIME
				objZNREQTBM_START_TIME.Name              = "Txt_ZNREQTBM_START_TIME";
				objZNREQTBM_START_TIME.TABLE_COLUMN_NAME = "ZNREQTBM_START_TIME";

				objZNREQTBM_START_TIME.OnBlurEvents = "";
				objZNREQTBM_START_TIME.Length       = 5;
				objZNREQTBM_START_TIME.Height       = 0;
				objZNREQTBM_START_TIME.COLUMN_SCALE = 0;
				objZNREQTBM_START_TIME.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_TIME.Compulsory   = false;
				objZNREQTBM_START_TIME.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_TIME");
				objZNREQTBM_START_TIME.COLSPAN      = 1;
				objZNREQTBM_START_TIME.ROWSPAN      = 1;
				objZNREQTBM_START_TIME.Index        = 1080;
				objZNREQTBM_START_TIME.NEW_LINE     = false;
				objZNREQTBM_START_TIME.NEW_CELL     = true;
				objZNREQTBM_START_TIME.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_TIME);
				oWindow.Components.Add(objZNREQTBM_START_TIME);

#endregion //ZNREQTBM_START_TIME

#region ZNREQTBM_TASK_REQ_DATE
				objZNREQTBM_TASK_REQ_DATE.Name              = "Txt_ZNREQTBM_TASK_REQ_DATE";
				objZNREQTBM_TASK_REQ_DATE.TABLE_COLUMN_NAME = "ZNREQTBM_TASK_REQ_DATE";

				objZNREQTBM_TASK_REQ_DATE.OnBlurEvents = "";
				objZNREQTBM_TASK_REQ_DATE.Length       = 0;
				objZNREQTBM_TASK_REQ_DATE.Height       = 0;
				objZNREQTBM_TASK_REQ_DATE.COLUMN_SCALE = 0;
				objZNREQTBM_TASK_REQ_DATE.STATUS_CODE  = "";
				objZNREQTBM_TASK_REQ_DATE.Compulsory   = false;
				objZNREQTBM_TASK_REQ_DATE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_TASK_REQ_DATE");
				objZNREQTBM_TASK_REQ_DATE.COLSPAN      = 1;
				objZNREQTBM_TASK_REQ_DATE.ROWSPAN      = 1;
				objZNREQTBM_TASK_REQ_DATE.Index        = 1090;
				objZNREQTBM_TASK_REQ_DATE.NEW_LINE     = true;
				objZNREQTBM_TASK_REQ_DATE.NEW_CELL     = true;
				objZNREQTBM_TASK_REQ_DATE.LINE_REVEAL  = false;

					objZNREQTBM_TASK_REQ_DATE.Title=_Captions.Caption("lbl_Date_Column_Title");

				oXForm.AddObject(objZNREQTBM_TASK_REQ_DATE);
				oWindow.Components.Add(objZNREQTBM_TASK_REQ_DATE);

#endregion //ZNREQTBM_TASK_REQ_DATE

#region ZNREQTBM_TASK_REQ_TIME
				objZNREQTBM_TASK_REQ_TIME.Name              = "Txt_ZNREQTBM_TASK_REQ_TIME";
				objZNREQTBM_TASK_REQ_TIME.TABLE_COLUMN_NAME = "ZNREQTBM_TASK_REQ_TIME";

				objZNREQTBM_TASK_REQ_TIME.OnBlurEvents = "";
				objZNREQTBM_TASK_REQ_TIME.Length       = 5;
				objZNREQTBM_TASK_REQ_TIME.Height       = 0;
				objZNREQTBM_TASK_REQ_TIME.COLUMN_SCALE = 0;
				objZNREQTBM_TASK_REQ_TIME.STATUS_CODE  = "";
				objZNREQTBM_TASK_REQ_TIME.Compulsory   = false;
				objZNREQTBM_TASK_REQ_TIME.Caption      = _Captions.Caption(this.UID_CODE,"lbl_TASK_REQ_TIME");
				objZNREQTBM_TASK_REQ_TIME.COLSPAN      = 1;
				objZNREQTBM_TASK_REQ_TIME.ROWSPAN      = 1;
				objZNREQTBM_TASK_REQ_TIME.Index        = 1100;
				objZNREQTBM_TASK_REQ_TIME.NEW_LINE     = false;
				objZNREQTBM_TASK_REQ_TIME.NEW_CELL     = true;
				objZNREQTBM_TASK_REQ_TIME.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_TASK_REQ_TIME);
				oWindow.Components.Add(objZNREQTBM_TASK_REQ_TIME);

#endregion //ZNREQTBM_TASK_REQ_TIME

#region ZNREQTBM_START_CLASS
				objZNREQTBM_START_CLASS.Name              = "Txt_ZNREQTBM_START_CLASS";
				objZNREQTBM_START_CLASS.TABLE_COLUMN_NAME = "ZNREQTBM_START_CLASS";

				objZNREQTBM_START_CLASS.OnBlurEvents = "";
				objZNREQTBM_START_CLASS.Length       = 10;
				objZNREQTBM_START_CLASS.Height       = 0;
				objZNREQTBM_START_CLASS.COLUMN_SCALE = 0;
				objZNREQTBM_START_CLASS.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_CLASS.Compulsory   = false;
				objZNREQTBM_START_CLASS.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_CLASS");
				objZNREQTBM_START_CLASS.COLSPAN      = 1;
				objZNREQTBM_START_CLASS.ROWSPAN      = 1;
				objZNREQTBM_START_CLASS.Index        = 1110;
				objZNREQTBM_START_CLASS.NEW_LINE     = true;
				objZNREQTBM_START_CLASS.NEW_CELL     = true;
				objZNREQTBM_START_CLASS.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_CLASS);
				oWindow.Components.Add(objZNREQTBM_START_CLASS);

					objXOption.COLUMN_NAME="OPT_START_CLASS";
					objXOption.Process();
					objZNREQTBM_START_CLASS.Option         = objXOption.Option;

#endregion //ZNREQTBM_START_CLASS

#region ZNREQTBM_START_OPT13
				objZNREQTBM_START_OPT13.Name              = "Txt_ZNREQTBM_START_OPT13";
				objZNREQTBM_START_OPT13.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT13";

				objZNREQTBM_START_OPT13.OnBlurEvents = "";
				objZNREQTBM_START_OPT13.Length       = 2;
				objZNREQTBM_START_OPT13.Height       = 0;
				objZNREQTBM_START_OPT13.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT13.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT13.Compulsory   = false;
				objZNREQTBM_START_OPT13.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT13");
				objZNREQTBM_START_OPT13.COLSPAN      = 2;
				objZNREQTBM_START_OPT13.ROWSPAN      = 1;
				objZNREQTBM_START_OPT13.Index        = 1120;
				objZNREQTBM_START_OPT13.NEW_LINE     = true;
				objZNREQTBM_START_OPT13.NEW_CELL     = true;
				objZNREQTBM_START_OPT13.LINE_REVEAL  = true;

				oXForm.AddObject(objZNREQTBM_START_OPT13);
				oWindow.Components.Add(objZNREQTBM_START_OPT13);

#endregion //ZNREQTBM_START_OPT13

#region ZNREQTBM_START_OPT01
				objZNREQTBM_START_OPT01.Name              = "Txt_ZNREQTBM_START_OPT01";
				objZNREQTBM_START_OPT01.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT01";

				objZNREQTBM_START_OPT01.OnBlurEvents = "";
				objZNREQTBM_START_OPT01.Length       = 10;
				objZNREQTBM_START_OPT01.Height       = 0;
				objZNREQTBM_START_OPT01.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT01.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT01.Compulsory   = false;
				objZNREQTBM_START_OPT01.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT01");
				objZNREQTBM_START_OPT01.COLSPAN      = 1;
				objZNREQTBM_START_OPT01.ROWSPAN      = 1;
				objZNREQTBM_START_OPT01.Index        = 1130;
				objZNREQTBM_START_OPT01.NEW_LINE     = true;
				objZNREQTBM_START_OPT01.NEW_CELL     = true;
				objZNREQTBM_START_OPT01.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT01);
				oWindow.Components.Add(objZNREQTBM_START_OPT01);

#endregion //ZNREQTBM_START_OPT01

#region ZNREQTBM_START_OPT02
				objZNREQTBM_START_OPT02.Name              = "Txt_ZNREQTBM_START_OPT02";
				objZNREQTBM_START_OPT02.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT02";

				objZNREQTBM_START_OPT02.OnBlurEvents = "";
				objZNREQTBM_START_OPT02.Length       = 10;
				objZNREQTBM_START_OPT02.Height       = 0;
				objZNREQTBM_START_OPT02.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT02.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT02.Compulsory   = false;
				objZNREQTBM_START_OPT02.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT02");
				objZNREQTBM_START_OPT02.COLSPAN      = 1;
				objZNREQTBM_START_OPT02.ROWSPAN      = 1;
				objZNREQTBM_START_OPT02.Index        = 1140;
				objZNREQTBM_START_OPT02.NEW_LINE     = false;
				objZNREQTBM_START_OPT02.NEW_CELL     = true;
				objZNREQTBM_START_OPT02.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT02);
				oWindow.Components.Add(objZNREQTBM_START_OPT02);

#endregion //ZNREQTBM_START_OPT02

#region ZNREQTBM_START_OPT03
				objZNREQTBM_START_OPT03.Name              = "Txt_ZNREQTBM_START_OPT03";
				objZNREQTBM_START_OPT03.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT03";

				objZNREQTBM_START_OPT03.OnBlurEvents = "";
				objZNREQTBM_START_OPT03.Length       = 10;
				objZNREQTBM_START_OPT03.Height       = 0;
				objZNREQTBM_START_OPT03.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT03.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT03.Compulsory   = false;
				objZNREQTBM_START_OPT03.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT03");
				objZNREQTBM_START_OPT03.COLSPAN      = 1;
				objZNREQTBM_START_OPT03.ROWSPAN      = 1;
				objZNREQTBM_START_OPT03.Index        = 1150;
				objZNREQTBM_START_OPT03.NEW_LINE     = false;
				objZNREQTBM_START_OPT03.NEW_CELL     = true;
				objZNREQTBM_START_OPT03.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT03);
				oWindow.Components.Add(objZNREQTBM_START_OPT03);

#endregion //ZNREQTBM_START_OPT03

#region ZNREQTBM_START_OPT04
				objZNREQTBM_START_OPT04.Name              = "Txt_ZNREQTBM_START_OPT04";
				objZNREQTBM_START_OPT04.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT04";

				objZNREQTBM_START_OPT04.OnBlurEvents = "";
				objZNREQTBM_START_OPT04.Length       = 10;
				objZNREQTBM_START_OPT04.Height       = 0;
				objZNREQTBM_START_OPT04.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT04.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT04.Compulsory   = false;
				objZNREQTBM_START_OPT04.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT04");
				objZNREQTBM_START_OPT04.COLSPAN      = 1;
				objZNREQTBM_START_OPT04.ROWSPAN      = 1;
				objZNREQTBM_START_OPT04.Index        = 1160;
				objZNREQTBM_START_OPT04.NEW_LINE     = true;
				objZNREQTBM_START_OPT04.NEW_CELL     = true;
				objZNREQTBM_START_OPT04.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT04);
				oWindow.Components.Add(objZNREQTBM_START_OPT04);

#endregion //ZNREQTBM_START_OPT04

#region ZNREQTBM_START_OPT05
				objZNREQTBM_START_OPT05.Name              = "Txt_ZNREQTBM_START_OPT05";
				objZNREQTBM_START_OPT05.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT05";

				objZNREQTBM_START_OPT05.OnBlurEvents = "";
				objZNREQTBM_START_OPT05.Length       = 10;
				objZNREQTBM_START_OPT05.Height       = 0;
				objZNREQTBM_START_OPT05.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT05.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT05.Compulsory   = false;
				objZNREQTBM_START_OPT05.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT05");
				objZNREQTBM_START_OPT05.COLSPAN      = 1;
				objZNREQTBM_START_OPT05.ROWSPAN      = 1;
				objZNREQTBM_START_OPT05.Index        = 1170;
				objZNREQTBM_START_OPT05.NEW_LINE     = false;
				objZNREQTBM_START_OPT05.NEW_CELL     = true;
				objZNREQTBM_START_OPT05.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT05);
				oWindow.Components.Add(objZNREQTBM_START_OPT05);

#endregion //ZNREQTBM_START_OPT05

#region ZNREQTBM_START_OPT06
				objZNREQTBM_START_OPT06.Name              = "Txt_ZNREQTBM_START_OPT06";
				objZNREQTBM_START_OPT06.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT06";

				objZNREQTBM_START_OPT06.OnBlurEvents = "";
				objZNREQTBM_START_OPT06.Length       = 10;
				objZNREQTBM_START_OPT06.Height       = 0;
				objZNREQTBM_START_OPT06.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT06.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT06.Compulsory   = false;
				objZNREQTBM_START_OPT06.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT06");
				objZNREQTBM_START_OPT06.COLSPAN      = 1;
				objZNREQTBM_START_OPT06.ROWSPAN      = 1;
				objZNREQTBM_START_OPT06.Index        = 1180;
				objZNREQTBM_START_OPT06.NEW_LINE     = false;
				objZNREQTBM_START_OPT06.NEW_CELL     = true;
				objZNREQTBM_START_OPT06.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT06);
				oWindow.Components.Add(objZNREQTBM_START_OPT06);

#endregion //ZNREQTBM_START_OPT06

#region ZNREQTBM_START_OPT07
				objZNREQTBM_START_OPT07.Name              = "Txt_ZNREQTBM_START_OPT07";
				objZNREQTBM_START_OPT07.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT07";

				objZNREQTBM_START_OPT07.OnBlurEvents = "";
				objZNREQTBM_START_OPT07.Length       = 10;
				objZNREQTBM_START_OPT07.Height       = 0;
				objZNREQTBM_START_OPT07.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT07.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT07.Compulsory   = false;
				objZNREQTBM_START_OPT07.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT07");
				objZNREQTBM_START_OPT07.COLSPAN      = 1;
				objZNREQTBM_START_OPT07.ROWSPAN      = 1;
				objZNREQTBM_START_OPT07.Index        = 1190;
				objZNREQTBM_START_OPT07.NEW_LINE     = true;
				objZNREQTBM_START_OPT07.NEW_CELL     = true;
				objZNREQTBM_START_OPT07.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT07);
				oWindow.Components.Add(objZNREQTBM_START_OPT07);

#endregion //ZNREQTBM_START_OPT07

#region ZNREQTBM_START_OPT08
				objZNREQTBM_START_OPT08.Name              = "Txt_ZNREQTBM_START_OPT08";
				objZNREQTBM_START_OPT08.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT08";

				objZNREQTBM_START_OPT08.OnBlurEvents = "";
				objZNREQTBM_START_OPT08.Length       = 10;
				objZNREQTBM_START_OPT08.Height       = 0;
				objZNREQTBM_START_OPT08.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT08.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT08.Compulsory   = false;
				objZNREQTBM_START_OPT08.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT08");
				objZNREQTBM_START_OPT08.COLSPAN      = 1;
				objZNREQTBM_START_OPT08.ROWSPAN      = 1;
				objZNREQTBM_START_OPT08.Index        = 1200;
				objZNREQTBM_START_OPT08.NEW_LINE     = false;
				objZNREQTBM_START_OPT08.NEW_CELL     = true;
				objZNREQTBM_START_OPT08.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT08);
				oWindow.Components.Add(objZNREQTBM_START_OPT08);

#endregion //ZNREQTBM_START_OPT08

#region ZNREQTBM_START_OPT09
				objZNREQTBM_START_OPT09.Name              = "Txt_ZNREQTBM_START_OPT09";
				objZNREQTBM_START_OPT09.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT09";

				objZNREQTBM_START_OPT09.OnBlurEvents = "";
				objZNREQTBM_START_OPT09.Length       = 10;
				objZNREQTBM_START_OPT09.Height       = 0;
				objZNREQTBM_START_OPT09.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT09.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT09.Compulsory   = false;
				objZNREQTBM_START_OPT09.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT09");
				objZNREQTBM_START_OPT09.COLSPAN      = 1;
				objZNREQTBM_START_OPT09.ROWSPAN      = 1;
				objZNREQTBM_START_OPT09.Index        = 1210;
				objZNREQTBM_START_OPT09.NEW_LINE     = false;
				objZNREQTBM_START_OPT09.NEW_CELL     = true;
				objZNREQTBM_START_OPT09.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT09);
				oWindow.Components.Add(objZNREQTBM_START_OPT09);

#endregion //ZNREQTBM_START_OPT09

#region ZNREQTBM_START_OPT10
				objZNREQTBM_START_OPT10.Name              = "Txt_ZNREQTBM_START_OPT10";
				objZNREQTBM_START_OPT10.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT10";

				objZNREQTBM_START_OPT10.OnBlurEvents = "";
				objZNREQTBM_START_OPT10.Length       = 10;
				objZNREQTBM_START_OPT10.Height       = 0;
				objZNREQTBM_START_OPT10.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT10.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT10.Compulsory   = false;
				objZNREQTBM_START_OPT10.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT10");
				objZNREQTBM_START_OPT10.COLSPAN      = 1;
				objZNREQTBM_START_OPT10.ROWSPAN      = 1;
				objZNREQTBM_START_OPT10.Index        = 1220;
				objZNREQTBM_START_OPT10.NEW_LINE     = true;
				objZNREQTBM_START_OPT10.NEW_CELL     = true;
				objZNREQTBM_START_OPT10.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT10);
				oWindow.Components.Add(objZNREQTBM_START_OPT10);

#endregion //ZNREQTBM_START_OPT10

#region ZNREQTBM_START_OPT11
				objZNREQTBM_START_OPT11.Name              = "Txt_ZNREQTBM_START_OPT11";
				objZNREQTBM_START_OPT11.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT11";

				objZNREQTBM_START_OPT11.OnBlurEvents = "";
				objZNREQTBM_START_OPT11.Length       = 0;
				objZNREQTBM_START_OPT11.Height       = 0;
				objZNREQTBM_START_OPT11.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT11.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT11.Compulsory   = false;
				objZNREQTBM_START_OPT11.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT11");
				objZNREQTBM_START_OPT11.COLSPAN      = 1;
				objZNREQTBM_START_OPT11.ROWSPAN      = 1;
				objZNREQTBM_START_OPT11.Index        = 1230;
				objZNREQTBM_START_OPT11.NEW_LINE     = false;
				objZNREQTBM_START_OPT11.NEW_CELL     = true;
				objZNREQTBM_START_OPT11.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT11);
				oWindow.Components.Add(objZNREQTBM_START_OPT11);

#endregion //ZNREQTBM_START_OPT11

#region ZNREQTBM_START_OPT12
				objZNREQTBM_START_OPT12.Name              = "Txt_ZNREQTBM_START_OPT12";
				objZNREQTBM_START_OPT12.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT12";

				objZNREQTBM_START_OPT12.OnBlurEvents = "";
				objZNREQTBM_START_OPT12.Length       = 10;
				objZNREQTBM_START_OPT12.Height       = 0;
				objZNREQTBM_START_OPT12.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT12.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT12.Compulsory   = false;
				objZNREQTBM_START_OPT12.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT12");
				objZNREQTBM_START_OPT12.COLSPAN      = 1;
				objZNREQTBM_START_OPT12.ROWSPAN      = 1;
				objZNREQTBM_START_OPT12.Index        = 1240;
				objZNREQTBM_START_OPT12.NEW_LINE     = false;
				objZNREQTBM_START_OPT12.NEW_CELL     = true;
				objZNREQTBM_START_OPT12.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT12);
				oWindow.Components.Add(objZNREQTBM_START_OPT12);

#endregion //ZNREQTBM_START_OPT12

#region ZNREQTBM_START_OPT15
				objZNREQTBM_START_OPT15.Name              = "Txt_ZNREQTBM_START_OPT15";
				objZNREQTBM_START_OPT15.TABLE_COLUMN_NAME = "ZNREQTBM_START_OPT15";

				objZNREQTBM_START_OPT15.OnBlurEvents = "";
				objZNREQTBM_START_OPT15.Length       = 80;
				objZNREQTBM_START_OPT15.Height       = 0;
				objZNREQTBM_START_OPT15.COLUMN_SCALE = 0;
				objZNREQTBM_START_OPT15.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_OPT15.Compulsory   = false;
				objZNREQTBM_START_OPT15.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_OPT15");
				objZNREQTBM_START_OPT15.COLSPAN      = 6;
				objZNREQTBM_START_OPT15.ROWSPAN      = 1;
				objZNREQTBM_START_OPT15.Index        = 1250;
				objZNREQTBM_START_OPT15.NEW_LINE     = true;
				objZNREQTBM_START_OPT15.NEW_CELL     = true;
				objZNREQTBM_START_OPT15.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_OPT15);
				oWindow.Components.Add(objZNREQTBM_START_OPT15);

#endregion //ZNREQTBM_START_OPT15

#region ZNREQTBM_REQ_RMKS
				objZNREQTBM_REQ_RMKS.Name              = "Txt_ZNREQTBM_REQ_RMKS";
				objZNREQTBM_REQ_RMKS.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_RMKS";

				objZNREQTBM_REQ_RMKS.OnBlurEvents = "";
				objZNREQTBM_REQ_RMKS.Length       = 80;
				objZNREQTBM_REQ_RMKS.Height       = 0;
				objZNREQTBM_REQ_RMKS.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_RMKS.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_REQ_RMKS.Compulsory   = false;
				objZNREQTBM_REQ_RMKS.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_RMKS");
				objZNREQTBM_REQ_RMKS.COLSPAN      = 9;
				objZNREQTBM_REQ_RMKS.ROWSPAN      = 1;
				objZNREQTBM_REQ_RMKS.Index        = 1260;
				objZNREQTBM_REQ_RMKS.NEW_LINE     = true;
				objZNREQTBM_REQ_RMKS.NEW_CELL     = true;
				objZNREQTBM_REQ_RMKS.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_RMKS);
				oWindow.Components.Add(objZNREQTBM_REQ_RMKS);

#endregion //ZNREQTBM_REQ_RMKS

#region ZNREQTBM_START_BIT
				objZNREQTBM_START_BIT.Name              = "Txt_ZNREQTBM_START_BIT";
				objZNREQTBM_START_BIT.TABLE_COLUMN_NAME = "ZNREQTBM_START_BIT";

				objZNREQTBM_START_BIT.OnBlurEvents = "";
				objZNREQTBM_START_BIT.Length       = 0;
				objZNREQTBM_START_BIT.Height       = 0;
				objZNREQTBM_START_BIT.COLUMN_SCALE = 0;
				objZNREQTBM_START_BIT.STATUS_CODE  = "ADDNEW,UPDATE";
				objZNREQTBM_START_BIT.Compulsory   = false;
				objZNREQTBM_START_BIT.Caption      = _Captions.Caption(this.UID_CODE,"lbl_START_BIT");
				objZNREQTBM_START_BIT.COLSPAN      = 6;
				objZNREQTBM_START_BIT.ROWSPAN      = 1;
				objZNREQTBM_START_BIT.Index        = 1270;
				objZNREQTBM_START_BIT.NEW_LINE     = true;
				objZNREQTBM_START_BIT.NEW_CELL     = true;
				objZNREQTBM_START_BIT.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_START_BIT);
				oWindow.Components.Add(objZNREQTBM_START_BIT);

#endregion //ZNREQTBM_START_BIT

#region ZNREQTBM_REQ_STATUS
				objZNREQTBM_REQ_STATUS.Name              = "Txt_ZNREQTBM_REQ_STATUS";
				objZNREQTBM_REQ_STATUS.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_STATUS";

				objZNREQTBM_REQ_STATUS.OnBlurEvents = "";
				objZNREQTBM_REQ_STATUS.Length       = 12;
				objZNREQTBM_REQ_STATUS.Height       = 0;
				objZNREQTBM_REQ_STATUS.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_STATUS.STATUS_CODE  = "";
				objZNREQTBM_REQ_STATUS.Compulsory   = false;
				objZNREQTBM_REQ_STATUS.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_STATUS");
				objZNREQTBM_REQ_STATUS.COLSPAN      = 2;
				objZNREQTBM_REQ_STATUS.ROWSPAN      = 1;
				objZNREQTBM_REQ_STATUS.Index        = 1280;
				objZNREQTBM_REQ_STATUS.NEW_LINE     = true;
				objZNREQTBM_REQ_STATUS.NEW_CELL     = true;
				objZNREQTBM_REQ_STATUS.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_STATUS);
				oWindow.Components.Add(objZNREQTBM_REQ_STATUS);

					objXOption.COLUMN_NAME="OPT_REQ_STATUS";
					objXOption.Process();
					objZNREQTBM_REQ_STATUS.Option         = objXOption.Option;

#endregion //ZNREQTBM_REQ_STATUS

#region ZNREQTBM_REQ_USER
				objZNREQTBM_REQ_USER.Name              = "Txt_ZNREQTBM_REQ_USER";
				objZNREQTBM_REQ_USER.TABLE_COLUMN_NAME = "ZNREQTBM_REQ_USER";

				objZNREQTBM_REQ_USER.OnBlurEvents = "";
				objZNREQTBM_REQ_USER.Length       = 12;
				objZNREQTBM_REQ_USER.Height       = 0;
				objZNREQTBM_REQ_USER.COLUMN_SCALE = 0;
				objZNREQTBM_REQ_USER.STATUS_CODE  = "";
				objZNREQTBM_REQ_USER.Compulsory   = false;
				objZNREQTBM_REQ_USER.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REQ_USER");
				objZNREQTBM_REQ_USER.COLSPAN      = 2;
				objZNREQTBM_REQ_USER.ROWSPAN      = 1;
				objZNREQTBM_REQ_USER.Index        = 1290;
				objZNREQTBM_REQ_USER.NEW_LINE     = true;
				objZNREQTBM_REQ_USER.NEW_CELL     = true;
				objZNREQTBM_REQ_USER.LINE_REVEAL  = false;

				oXForm.AddObject(objZNREQTBM_REQ_USER);
				oWindow.Components.Add(objZNREQTBM_REQ_USER);

					objZNREQTBM_REQ_USER.Browser        = objZNREQTBM_REQ_USERBrw;
					objZNREQTBM_REQ_USERBrw.UGET_CODE   = "LOGON_ID";
					objZNREQTBM_REQ_USERBrw.Data_Viewer = "";
					objZNREQTBM_REQ_USERBrw.ACTIVE_FIELD ="ZNUSERTM.LOGON_ID";

					objZNREQTBM_REQ_USER.OnBlurEvents="RefreshData('LOGON_ID','XREF','Txt_ZNREQTBM_REQ_USER');";

					objZNREQTBM_REQ_USER.UGET_CODE="LOGON_ID";

#endregion //ZNREQTBM_REQ_USER

			_ZZCDF.Process();

			foreach (VContexts oVContexts in _ZZCDF.ZZCDFS) 
			{
				AComponent oCDFElement;

				if (oVContexts.getValue("CDF_TP_CODE")=="D")
				{
					oCDFElement=new WebDateBox();
				}else if (oVContexts.getValue("CDF_CODE")=="L")
				{
					oCDFElement=new WebCheckBox();
				}else if (oVContexts.getValue("CDF_CODE")=="N")
				{
					oCDFElement=new WebFloatBox();
				}else{
					oCDFElement=new WebTextBox();
				}

				oCDFElement.Name          = "Txt_CDF_"+oVContexts.getValue("CDF_CODE");
				oCDFElement.Length        = oVContexts.getInteger("CDF_LENGTH");
				oCDFElement.Height        = 1;
				oCDFElement.COLUMN_SCALE = oVContexts.getInteger("COLUMN_SCALE");
				oCDFElement.STATUS_CODE   = oVContexts.getValue("STATUS_CODE");
				oCDFElement.Compulsory    = !oVContexts.getBoolean("COLUMN_NULLABLE");

				if (oVContexts.getValue("LABEL_ID")!="")
				{
					oCDFElement.Caption     =_Captions.Caption(this.UID_CODE,oVContexts.getValue("LABEL_ID"));
				}else{
					oCDFElement.Caption     =oVContexts.getValue("CDF_NAME01");
				}
				oCDFElement.COLSPAN      = 1;
				oCDFElement.ROWSPAN      = 1;
				oCDFElement.Index        = oVContexts.getInteger("ORDINAL");
				oCDFElement.NEW_LINE     = true;
				oCDFElement.NEW_CELL     = true;
				oCDFElement.LINE_REVEAL  = false;

				_ZZCDFElect.Add(oCDFElement);
				oXForm.AddObject(oCDFElement);
				oWindow.Components.Add(oCDFElement);

			}

#endregion

				if (_DocsPermission.AccessRight(this.UID_CODE,this.ZZLOGON_ID,"SECURITY_CODE")==true)
				{
#region SECURITY_CODE

							objZNREQTBM_USECURITY_CODE1.NEW_LINE    =true;
						objZNREQTBM_USECURITY_CODE1.Name    = "Txt_ZNREQTBM_USECURITY_CODE1";
						objZNREQTBM_USECURITY_CODE1.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE1");
						oXForm.AuthObject(objZNREQTBM_USECURITY_CODE1);

											objZNREQTBM_USECURITY_CODE2.Name    = "Txt_ZNREQTBM_USECURITY_CODE2";
						objZNREQTBM_USECURITY_CODE2.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE2");
						oXForm.AuthObject(objZNREQTBM_USECURITY_CODE2);

												objZNREQTBM_USECURITY_CODE3.NEW_LINE    =true;
						objZNREQTBM_USECURITY_CODE3.Name    = "Txt_ZNREQTBM_USECURITY_CODE3";
						objZNREQTBM_USECURITY_CODE3.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE3");
						oXForm.AuthObject(objZNREQTBM_USECURITY_CODE3);

											objZNREQTBM_USECURITY_CODE4.Name    = "Txt_ZNREQTBM_USECURITY_CODE4";
						objZNREQTBM_USECURITY_CODE4.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE4");
						oXForm.AuthObject(objZNREQTBM_USECURITY_CODE4);

												objZNREQTBM_USECURITY_CODE5.NEW_LINE    =true;
						objZNREQTBM_USECURITY_CODE5.Name    = "Txt_ZNREQTBM_USECURITY_CODE5";
						objZNREQTBM_USECURITY_CODE5.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE5");
						oXForm.AuthObject(objZNREQTBM_USECURITY_CODE5);

											objZNREQTBM_USECURITY_CODE6.Name    = "Txt_ZNREQTBM_USECURITY_CODE6";
						objZNREQTBM_USECURITY_CODE6.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE6");
						oXForm.AuthObject(objZNREQTBM_USECURITY_CODE6);

					#region USECURITY_RIGHT

					objZNREQTBM_USECURITY_RIGHT.NEW_LINE = true;
					objZNREQTBM_USECURITY_RIGHT.Name     = "Txt_ZNREQTBM_USECURITY_RIGHT";
					objZNREQTBM_USECURITY_RIGHT.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_RIGHT");
					oXForm.AuthObject(objZNREQTBM_USECURITY_RIGHT);

#endregion

#region USTAGE_CODE

					objZNREQTBM_USTAGE_CODE.NEW_LINE = false;
					objZNREQTBM_USTAGE_CODE.Name     = "Txt_ZNREQTBM_USTAGE_CODE";
					objZNREQTBM_USTAGE_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USTAGE_CODE");
					oXForm.AuthObject(objZNREQTBM_USTAGE_CODE);

#endregion

#region ZADD_DATE

					objZNREQTBM_UZADD_DATE.NEW_LINE = true;
					objZNREQTBM_UZADD_DATE.Name     = "Txt_ZNREQTBM_UZADD_DATE";
					objZNREQTBM_UZADD_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZADD_DATE");
					oXForm.AuthObject(objZNREQTBM_UZADD_DATE);

#endregion

#region ZADD_USER

					objZNREQTBM_UZADD_USER.Name    = "Txt_ZNREQTBM_UZADD_USER";
					objZNREQTBM_UZADD_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZADD_USER");
					oXForm.AuthObject(objZNREQTBM_UZADD_USER);

#endregion

#region ZCHG_DATE
					objZNREQTBM_UZCHG_DATE.NEW_LINE = true;
					objZNREQTBM_UZCHG_DATE.Name     = "Txt_ZNREQTBM_UZCHG_DATE";
					objZNREQTBM_UZCHG_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_DATE");
					oXForm.AuthObject(objZNREQTBM_UZCHG_DATE);

#endregion

#region ZCHG_USER
					objZNREQTBM_UZCHG_USER.Name    = "Txt_ZNREQTBM_UZCHG_USER";
					objZNREQTBM_UZCHG_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_USER");
					oXForm.AuthObject(objZNREQTBM_UZCHG_USER);
#endregion
				}

#endregion

#region UXDIR_CODE
			objDATA_VFS_UXDIR_CODE.Name        = "Txt_DATA_VFS_UXDIR_CODE";
			objDATA_VFS_UXDIR_CODE.Caption     = _Captions.Caption(this.UID_CODE,"lbl_UXDIR_CODE");
			objDATA_VFS_UXDIR_CODE.NEW_CELL    = true;
			objDATA_VFS_UXDIR_CODE.NEW_LINE    = true;
			objDATA_VFS_UXDIR_CODE.Index       = 102002;
			objDATA_VFS_UXDIR_CODE.STATUS_CODE = "HIDDEN";

			oXForm.AddObject(objDATA_VFS_UXDIR_CODE);
			oWindow.Components.Add(objDATA_VFS_UXDIR_CODE);

#endregion

#region XUID_CODE
			objZNREQTBM_XUID_CODE.NEW_LINE = true;
			objZNREQTBM_XUID_CODE.Name     = "Txt_ZNREQTBM_XUID_CODE";
			objZNREQTBM_XUID_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");
			objZNREQTBM_XUID_CODE.Text     = "UID02180A";
			oXForm.AuthObject(objZNREQTBM_XUID_CODE);
#endregion

			_Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");

			objXDepend.Process();

			oXForm.AddXDepend(objXDepend.Depends);

			oWindow.AddWebForm(oXForm);

			//if (this.ZZEventStatus=="ADDNEW")
			//{
			//}else if (this.ZZEventStatus=="UPDATE")
			//{
			//}

    //objZNREQTBM_START_CLASS.OnChange="_XCallAjax('"+objXStatus.ZZEventTarget+"','Refresh','"+objXStatus.ZZEventStatus+"','"+objXStatus.ZZEventOpts+"');return false;";

			//_WebCells.ZZMUKI_EDITION = MUKI_EDITION;
			_WebCells.Name= "QID02180A";
			_WebCells.UID_CODE    = this.UID_CODE;
			_WebCells.USQL_CODE   = "QID02180A";
			_WebCells.STATUS_CODE = "VIEW";
			_WebCells.DbName    = this.DbName;
			_WebCells.PageSize    = 15;
			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_WebCells.OnInit(objHttpContext);

				if (_WebCells.USQL_CODE!="")
				{
					oWindow.AddWxfPanel(_WebCells);
				}

				oWindow.DbName = this.DbName;
			oWindow.OnInit(objHttpContext);
		}

		public void Render(HtmlTextWriter objTextWriter)
		{

#region Toolbar

			dbToolbar objdbToolbar   = new dbToolbar();
			objdbToolbar.BTNS_CODE   = "BASIC;";
			objdbToolbar.UID_CODE    = this.UID_CODE;
			objdbToolbar.Trans       = this.Trans;
			objdbToolbar.DATA_STATUS_CODE = _UID02180AEntity.DATA_STATUS_CODE;
			objdbToolbar.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbToolbar.ZZLOGON_SSD   = this.ZZLOGON_SSD;
			objdbToolbar.VIEW_MODE_CODE = this.ZZVIEW_MODE_CODE;

			ZZBTNS oZZBTNS         = new ZZBTNS();
			oZZBTNS.BTNS_CODE      = "UID02180A;Basic_VFS;BASIC_Actions";
			oZZBTNS.UID_CODE       = this.UID_CODE;
			oZZBTNS.BTN_CLASS_CODE = "FUNS";
			oZZBTNS.Trans          = this.Trans;
			oZZBTNS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oZZBTNS.DATA_STATUS_CODE = _UID02180AEntity.DATA_STATUS_CODE;
			oZZBTNS.ZZLOGON_LANG   = this.ZZLOGON_LANG;
			oZZBTNS.ZZLOGON_SSD    = this.ZZLOGON_SSD;
			oZZBTNS.VIEW_MODE_CODE = this.ZZVIEW_MODE_CODE;
			oZZBTNS.Process();

			ZZTrace.Debug(ZFILE_NAME,"oZZBTNS.BTNS.Count=["+oZZBTNS.BTNS.Count+"]");

			objdbToolbar.ActionsBTNS=oZZBTNS.BTNS;

			ZZBTNS oPRINTS           = new ZZBTNS();
			oPRINTS.BTNS_CODE        = "UID02180A;BASIC_Print";
			oPRINTS.UID_CODE         = this.UID_CODE;
			oPRINTS.BTN_CLASS_CODE   = "PRINT";
			oPRINTS.VIEW_MODE_CODE = this.ZZVIEW_MODE_CODE;
			oPRINTS.Trans            = this.Trans;
			oPRINTS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oPRINTS.DATA_STATUS_CODE = _UID02180AEntity.DATA_STATUS_CODE;
			oPRINTS.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oPRINTS.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oPRINTS.Process();

			objdbToolbar.PrintBTNS=oPRINTS.BTNS;

			objdbToolbar.Process();

			objWebBTNS= objdbToolbar.XWebBTNS;
			oWindow.AddToolBar(objWebBTNS);
			oWindow.BTNS = objdbToolbar.BTNS;
#endregion

			objZNREQTBM_USTAGE_CODE.Text=this.ZZVIEW_MODE_CODE;

    objZNREQTBM_START_OPT15.STATUS_CODE ="HIDDEN";

    if (objZNREQTBM_START_CLASS.Text=="W")
    {
        objZNREQTBM_START_OPT01.Caption =_Captions.Caption(this.UID_CODE,"lbl_Mon");
        objZNREQTBM_START_OPT02.Caption =_Captions.Caption(this.UID_CODE,"lbl_Tue");
        objZNREQTBM_START_OPT03.Caption =_Captions.Caption(this.UID_CODE,"lbl_Wed");
        objZNREQTBM_START_OPT04.Caption =_Captions.Caption(this.UID_CODE,"lbl_Thu");
        objZNREQTBM_START_OPT05.Caption =_Captions.Caption(this.UID_CODE,"lbl_Fri");
        objZNREQTBM_START_OPT06.Caption =_Captions.Caption(this.UID_CODE,"lbl_Sat");
        objZNREQTBM_START_OPT07.Caption =_Captions.Caption(this.UID_CODE,"lbl_Sun");

        objZNREQTBM_START_OPT08.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT09.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT10.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT11.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT12.STATUS_CODE ="HIDDEN";

    }else if (objZNREQTBM_START_CLASS.Text=="M")
    {
        objZNREQTBM_START_OPT01.Caption =_Captions.Caption(this.UID_CODE,"lbl_Jan");
        objZNREQTBM_START_OPT02.Caption =_Captions.Caption(this.UID_CODE,"lbl_Feb");
        objZNREQTBM_START_OPT03.Caption =_Captions.Caption(this.UID_CODE,"lbl_Mar");
        objZNREQTBM_START_OPT04.Caption =_Captions.Caption(this.UID_CODE,"lbl_Apr");
        objZNREQTBM_START_OPT05.Caption =_Captions.Caption(this.UID_CODE,"lbl_May");
        objZNREQTBM_START_OPT06.Caption =_Captions.Caption(this.UID_CODE,"lbl_Jun");
        objZNREQTBM_START_OPT07.Caption =_Captions.Caption(this.UID_CODE,"lbl_Jul");
        objZNREQTBM_START_OPT08.Caption =_Captions.Caption(this.UID_CODE,"lbl_Aug");
        objZNREQTBM_START_OPT09.Caption =_Captions.Caption(this.UID_CODE,"lbl_Sep");
        objZNREQTBM_START_OPT10.Caption =_Captions.Caption(this.UID_CODE,"lbl_Oct");
        objZNREQTBM_START_OPT11.Caption =_Captions.Caption(this.UID_CODE,"lbl_Nov");
        objZNREQTBM_START_OPT12.Caption =_Captions.Caption(this.UID_CODE,"lbl_Dec");

        objZNREQTBM_START_OPT13.Caption =_Captions.Caption(this.UID_CODE,"lbl_Day");

    }else{
        objZNREQTBM_START_OPT01.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT02.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT03.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT04.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT05.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT06.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT07.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT08.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT09.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT10.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT11.STATUS_CODE ="HIDDEN";
        objZNREQTBM_START_OPT12.STATUS_CODE ="HIDDEN";

        if (objZNREQTBM_START_CLASS.Text=="N")
        {
            objZNREQTBM_START_OPT13.STATUS_CODE ="HIDDEN";
        }
        if (objZNREQTBM_START_CLASS.Text=="E")
        {
            objZNREQTBM_START_OPT13.STATUS_CODE ="HIDDEN";
            objZNREQTBM_START_OPT15.STATUS_CODE ="ADDNEW,UPDATE";
            objZNREQTBM_START_OPT15.Caption =_Captions.Caption(this.UID_CODE,"lbl_Expression");
        }
    }

			_STATUS_DATA["UID02180A","ZZVIEW_MODE_CODE"]   = this.ZZVIEW_MODE_CODE;
			_STATUS_DATA["UID02180A","ZZVIEW_STATUS_CODE"] = this.ZZVIEW_STATUS_CODE;

			oWindow.VIEW_STATUS_CODE  = this.ZZVIEW_STATUS_CODE;
			oWindow.VIEW_MODE_CODE  = this.ZZVIEW_MODE_CODE;

			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.STATUS_CODE   = "VIEW";
			_WebCells.WXFLite       = this.Entity.Wxf;
			_WebCells.OperationMode = "EDIT";
			_WebCells.ZZLOGON_ID    = this.ZZLOGON_ID;
			_WebCells.Trans         = this.Trans;
			_WebCells.Process();

			oWindow.WindowsStatus = _STATUS_DATA;
			oWindow.UID_CODE      = "UID02180A";
			oWindow.Template      = "";
			oWindow.APP_PATH      = this.APP_PATH;
			ZZTrace.Debug(ZFILE_NAME,this.APP_PATH+"System\\templates\\");

			if (File.Exists(this.APP_PATH+"System\\templates\\"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\").ToString());
			}else	if (File.Exists(this.APP_PATH+"System\\templates\\UID02180A.tpl"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\UID02180A.tpl").ToString());
			}
			oWindow.Trans         = this.Trans;
			oWindow.Exceptions    = this.Exceptions;
			
			objXDeclareBlock.ZZLOGON_SSD=this.ZZLOGON_SSD;
			objXDeclareBlock.DbName=this.DbName;
			objXDeclareBlock.ZZLOGON_LANG  =this.ZZLOGON_LANG;
			objXDeclareBlock.Trans =this.Trans;
			objXDeclareBlock.Render(objTextWriter);

			oWindow.Render(objTextWriter);

			objTextWriter.WriteLine("<script type='text/javascript'>");
			objTextWriter.WriteLine("");

			objTextWriter.WriteLine("$(document).ready(function ()");
			objTextWriter.WriteLine("{");
			objTextWriter.WriteLine("var vModels = avalon.define(\"Fields\", function(vm) {");

			objTextWriter.WriteLine("vm.Models={");
			foreach (AComponent oElement in oXForm.Objects)
			{
				if  (oElement.TABLE_COLUMN_NAME!=""){
					objTextWriter.WriteLine(oElement.TABLE_COLUMN_NAME+":{");
					objTextWriter.WriteLine("Text:\""+Dot.StreamObject.Util.EscapeString(oElement.Text)+"\",");
					objTextWriter.WriteLine("Class:\""+oElement.ClassName+"\",");
					if (oElement.Readonly){
						objTextWriter.WriteLine("Readonly:true");
					}else{
						objTextWriter.WriteLine("Readonly:false");
					}
					objTextWriter.WriteLine("},");
					objTextWriter.WriteLine("");
				}
			}
			objTextWriter.WriteLine("};");
			objTextWriter.WriteLine("");
	
			objTextWriter.WriteLine("vm.Buttons={");
			foreach (WebImageButton oElement in objdbToolbar.XWebBTNS.WebButtons)
			{
				if  (oElement.TABLE_COLUMN_NAME!=""){
					objTextWriter.WriteLine(oElement.TABLE_COLUMN_NAME+":{");
					objTextWriter.WriteLine("Title:\""+oElement.Title+"\",");
					objTextWriter.WriteLine("ImageUrl:\""+oElement.ImageUrl+"\",");
					if (oElement.Readonly){
						objTextWriter.WriteLine("Class:\"dbutton\"");
					}else{
						objTextWriter.WriteLine("Class:\"abutton\"");
					}

					objTextWriter.WriteLine("},");
					objTextWriter.WriteLine("");
				}
			}
			objTextWriter.WriteLine("};");
			objTextWriter.WriteLine("");
	
			objTextWriter.WriteLine("});");
			objTextWriter.WriteLine("");
			objTextWriter.WriteLine("avalon.scan();");
			objTextWriter.WriteLine("});");
			objTextWriter.WriteLine("</script>");
			
			oXFinallyBlock.ZZLOGON_SSD=this.ZZLOGON_SSD;
			oXFinallyBlock.DbName=this.DbName;
			oXFinallyBlock.ZZLOGON_LANG  =this.ZZLOGON_LANG;
			oXFinallyBlock.UID_CODE  =this.UID_CODE;
			oXFinallyBlock.APP_PATH  =this.APP_PATH;
			oXFinallyBlock.Trans =this.Trans;
			oXFinallyBlock.Render(objTextWriter);

		}

		private XForm             oXForm;             
		private WebPanels         objWebPanels    = new WebPanels();
		private ZZDocsPermission  _DocsPermission = new ZZDocsPermission();
		private	XStatus           _STATUS_DATA    = new XStatus();
		private	WebLookup         _WebLookup      = new WebLookup();
		private Window            oWindow         = new Window();
		private WebBTNS           objWebBTNS      = new WebBTNS();
		private WebCells          _WebCells       = new WebCells();
		private XFinallyBlock   oXFinallyBlock    = new XFinallyBlock();
		private	XDeclareBlock   objXDeclareBlock  = new XDeclareBlock();

			private WebCaption objZNREQTBM_USECURITY_CODE1 =new WebCaption();
					private WebCaption objZNREQTBM_USECURITY_CODE2 =new WebCaption();
					private WebCaption objZNREQTBM_USECURITY_CODE3 =new WebCaption();
					private WebCaption objZNREQTBM_USECURITY_CODE4 =new WebCaption();
					private WebCaption objZNREQTBM_USECURITY_CODE5 =new WebCaption();
					private WebCaption objZNREQTBM_USECURITY_CODE6 =new WebCaption();
		
		private WebCaption  objZNREQTBM_UZADD_DATE      = new WebCaption();
		private WebCaption  objZNREQTBM_UZADD_USER      = new WebCaption();
		private WebCaption  objZNREQTBM_UZCHG_DATE      = new WebCaption();
		private WebCaption  objZNREQTBM_UZCHG_USER      = new WebCaption();
		private WebCaption  objZNREQTBM_USECURITY_RIGHT = new WebCaption();
		private WebCaption  objZNREQTBM_USTAGE_CODE     = new WebCaption();
		private WebHideBox  objDATA_VFS_UXDIR_CODE           = new WebHideBox();
		private WebCaption  objZNREQTBM_XUID_CODE       = new WebCaption();

		private List<AComponent>  _ZZCDFElect     = new List<AComponent>();
		public List<LogisticException> Exceptions = new List<LogisticException>();

		private string  _APP_PATH           = "";
		private string  _ATVT_CODE          = "";
		private string  UID_CODE            = "UID02180A";
		private string  _DbName             = "";
		private string  _DATA_STATUS_CODE   = "NONE";
		private string  _ZZLOGON_LANG       = "";
		private string  _ZZLOGON_SSD        = "";
		private string  _ZZEventOpts        = "";
		private string  _ZZVIEW_MODE_CODE   = "";
		private string  _ZZVIEW_STATUS_CODE = "";
		private string  _ZZMODEL_DATA       = "";
		private string  _ZZEventStatus      = "";
		private string  _ZZEventMode        = "";
		private string  _ZZEventArgs        = "";
		private string  _ZZLOGON_ID         = "";
		private string  _lnk_RW_NO          = "-1";
		private string  _lnk_MODE           = "-1";

		private StreamContext _Trans;
		private Wxf            _Wxf                = new Wxf();
		private XConvert       _Convert            = new XConvert();
		private ZZCaptions     _Captions           = new ZZCaptions();
		private UID02180AE   _UID02180AEntity  = new UID02180AE();

		public UID02180AE Entity { get { return  _UID02180AEntity ; } set { _UID02180AEntity = value; }  }

		public string   lnk_MODE    { get { return _lnk_MODE;       } set { _lnk_MODE       = value; }  }
		public string   lnk_RW_NO   { get { return _lnk_RW_NO;      } set { _lnk_RW_NO      = value; }  }
		public string   ZZLookup    { get { return _WebLookup.Text; } set { _WebLookup.Text = value; }  }
		public Wxf      ZZWxf       { get { return _Wxf;            } set { _Wxf            = value; }  }
		public WebPanels ZZPanels   { get { return objWebPanels;    } set { objWebPanels    = value; }  }
		public WebCells CellsPanel  { get { return _WebCells;       } set { _WebCells       = value; }  }
		public XStatus  STATUS_DATA { get { return _STATUS_DATA;    } set { _STATUS_DATA    = value; }  }

		public string  DbName             { get { return _DbName;             } set { _DbName             = value; }  }
		public string  ZZLOGON_SSD        { get { return _ZZLOGON_SSD;        } set { _ZZLOGON_SSD        = value; }  }
		public string  ZZLOGON_ID         { get { return _ZZLOGON_ID;         } set { _ZZLOGON_ID         = value; }  }
		public string  ZZEventOpts        { get { return _ZZEventOpts;        } set { _ZZEventOpts        = value; }  }
		public string  ZZVIEW_MODE_CODE   { get { return _ZZVIEW_MODE_CODE;   } set { _ZZVIEW_MODE_CODE   = value; }  }
		public string  ZZVIEW_STATUS_CODE { get { return _ZZVIEW_STATUS_CODE; } set { _ZZVIEW_STATUS_CODE = value; }  }
		public string  ZZMODEL_DATA       { get { return _ZZMODEL_DATA;       } set { _ZZMODEL_DATA       = value; }  }
		public string  ZZEventStatus      { get { return _ZZEventStatus;      } set { _ZZEventStatus      = value; }  }
		public string  ZZEventMode        { get { return _ZZEventMode;        } set { _ZZEventMode        = value; }  }
		public string  ZZEventArgs        { get { return _ZZEventArgs;        } set { _ZZEventArgs        = value; }  }
		public string  ZZLOGON_LANG       { get { return _ZZLOGON_LANG;       } set { _ZZLOGON_LANG       = value; }  }
		public string  ATVT_CODE          { get { return _ATVT_CODE;          } set { _ATVT_CODE          = value; }  }
		public string  DATA_STATUS_CODE   { get { return _DATA_STATUS_CODE;   } set { _DATA_STATUS_CODE   = value; }  }
		public string  APP_PATH           { get { return _APP_PATH;           } set { _APP_PATH           = value; }  }

		public StreamContext  Trans              { get { return _Trans;           } set { _Trans           = value; }  }

#region screen element

					private WebTextBox objZNREQTBM_REQ_CODE =new WebTextBox();

					private WebTextBox objZNREQTBM_UID_CODE =new WebTextBox();
    private WebBrowser objZNREQTBM_UID_CODEBrw =new WebBrowser();

					private WebTextBox objZNREQTBM_REQ_NAME01 =new WebTextBox();

					private WebTextBox objZNREQTBM_REQ_NAME02 =new WebTextBox();

					private WebTextBox objZNREQTBM_REQ_URL =new WebTextBox();

					private WebMemoBox objZNREQTBM_REQ_OPT =new WebMemoBox();

					private WebDateBox objZNREQTBM_START_DATE =new WebDateBox();

					private WebTextBox objZNREQTBM_START_TIME =new WebTextBox();

					private WebDateBox objZNREQTBM_TASK_REQ_DATE =new WebDateBox();

					private WebTextBox objZNREQTBM_TASK_REQ_TIME =new WebTextBox();

					private WebOption objZNREQTBM_START_CLASS =new WebOption();

					private WebDigitBox objZNREQTBM_START_OPT13 =new WebDigitBox();

					private WebCheckBox objZNREQTBM_START_OPT01 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT02 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT03 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT04 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT05 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT06 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT07 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT08 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT09 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT10 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT11 =new WebCheckBox();

					private WebCheckBox objZNREQTBM_START_OPT12 =new WebCheckBox();

					private WebMemoBox objZNREQTBM_START_OPT15 =new WebMemoBox();

					private WebMemoBox objZNREQTBM_REQ_RMKS =new WebMemoBox();

					private WebCheckBox objZNREQTBM_START_BIT =new WebCheckBox();

					private WebOption objZNREQTBM_REQ_STATUS =new WebOption();

					private WebTextBox objZNREQTBM_REQ_USER =new WebTextBox();
    private WebBrowser objZNREQTBM_REQ_USERBrw =new WebBrowser();

#endregion
		const  string ZFILE_NAME   ="UID02180AV";
		const  string MUKI_EDITION ="MIN";

	}
}
